Skip to content

docs: say RemoteConfig is null during server rendering - #3850

Draft
armando-navarro wants to merge 1 commit into
angular:mainfrom
armando-navarro:docs-remote-config-server-rendering
Draft

armando-navarro wants to merge 1 commit into
angular:mainfrom
armando-navarro:docs-remote-config-server-rendering

Conversation

@armando-navarro

Copy link
Copy Markdown
Collaborator

Adds one sentence to docs/remote-config.md, after the inject(RemoteConfig) snippet: "RemoteConfig is null during server rendering, so check it before use."

Verification

  • I rendered a one-component app on the server with renderApplication and the page's two provider lines. inject(RemoteConfig) was null.
  • The same render with PLATFORM_ID forced to browser gave an instance.
  • I ran this on @angular/fire 21.0.0-rc.0-canary.f54c0fe. src/remote-config/remote-config.module.ts is identical on main.

AngularFire creates no Remote Config instance on the server, so
inject(RemoteConfig) returns null there while its type says
RemoteConfig. The page showed the injection without mentioning it.
@armando-navarro armando-navarro added comp: docs Documentation. comp: remote-config Remote Config (src/remote-config). comp: ssr Server-side rendering, hydration, @angular/ssr interop. type: chore Maintenance with no user-facing behavior change. labels Nov 25, 2026
@armando-navarro armando-navarro added this to the 22.0.0 milestone Nov 25, 2026
@armando-navarro
armando-navarro marked this pull request as draft November 25, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: docs Documentation. comp: remote-config Remote Config (src/remote-config). comp: ssr Server-side rendering, hydration, @angular/ssr interop. type: chore Maintenance with no user-facing behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant